package com.hgkj.cloud.base.scheme.table;

import com.hgkj.cloud.base.scheme.ClsAnswerRequest;
import com.hgkj.cloud.base.scheme.ClsAnswerResult;

import java.util.Map;

/**
 * 量表结果计算方法接口
 * */
public interface TableCalculate {

    String g_sChar = "@@"; // 特殊答案@@
    String g_nChar = "\\|"; // 普通答案|

    /**
     * 获取量表编码
     * */
    public String getCode();

    /**
     * 计算结果
     * */
    public ClsAnswerResult calc(ClsAnswerRequest answer);

    /**
     * 生成报告
     * */
    public String[] report(Map map);
}
